import instance from './myhttp'
// 登录
function toLogin (data) {
  return instance({
    url: '/wx/login',
    method: 'post',
    data
  })
}
// 获取首页数据
function getIndexData (params) {
  return instance({
    url: '/client/index',
    method: 'get',
    params
  })
}
// 上传图片
function uploadPictures (data) {
  return instance({
    url: '/common/upload',
    method: 'post',
    data
  })
}
export { toLogin, getIndexData, uploadPictures }